﻿CREATE TABLE [dbo].[Local](
	[id_local] [int] IDENTITY(1,1) NOT NULL,
	[nombre_local] [nvarchar](150) NULL,
	[direccion] [nvarchar](100) NULL,
	[descripcion] [nvarchar](250) NULL,
	[id_negocios] [int] NULL,
 CONSTRAINT [PK_Local] PRIMARY KEY CLUSTERED 
(
	[id_local] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  ForeignKey [FK_Local_Negocio]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[Local]  WITH CHECK ADD  CONSTRAINT [FK_Local_Negocio] FOREIGN KEY([id_negocios])
REFERENCES [dbo].[Negocio] ([id_negocio])
GO

ALTER TABLE [dbo].[Local] CHECK CONSTRAINT [FK_Local_Negocio]